﻿<%@ Page Language="C#" MasterPageFile="~/default-nomenu.Master" AutoEventWireup="true" CodeBehind="relatorioplanejadoexecutado.aspx.cs" Inherits="CeA.Reports.Atendimento.Web.site.relatorioplanejadoexecutado" Title="[Q-WEB]: Relatório de Mesas Planejadas e Executadas por Loja" %>
<%@ PreviousPageType TypeName="CeA.Reports.Atendimento.Web.admin.loja" %>
<%@ Register src="../inc/WebControls/MessageBox.ascx" tagname="MessageBox" tagprefix="msgbox" %>

<asp:Content ID="head" ContentPlaceHolderID="head" runat="server">
  <title>[Q-WEB]: Relatório de Mesas Planejadas e Executadas por Loja</title>
  <link rel="Stylesheet" href="/css/popup.css" type="text/css" />
  <script src="/js/jquery.jqprint.js" type="text/javascript"></script>
  
  <script language="javascript" type="text/javascript">
    $(document).ready(function() {
        $(".data-field").calendar();
        $("#cmdImprimir").click( function() {
            $("#<%=report.ClientID%>").jqprint( {debug:false} );
        });
    });
  </script>
</asp:Content>

<asp:Content ID="body" ContentPlaceHolderID="BodyContentPlaceholder" runat="server">
  <h1>Relatório de Mesas Planejadas e Executadas por Loja</h1>
  
  <table cellpadding="1px" cellspacing="1px" border="0">
    <tr>
      <td style="width:85px"><label for="txtSigla" class="label">Sigla</label></td>      
      <td style="width:auto">
        <asp:TextBox ID="txtSigla" runat="server" CssClass="text-field-ro" MaxLength="128" Width="100px" Enabled="false" />
      </td>
    </tr>
    <tr>
      <td><label for="txtNome" class="label">Nome</label></td>      
      <td>
        <asp:TextBox ID="txtNome" runat="server" CssClass="text-field-ro" Style="background-color:#EEE" MaxLength="128" Width="613px" Enabled="true" />
      </td>
    </tr>
  </table>
  
  <table cellpadding="0px" cellspacing="0px" border="0">
    <tr>
      <td style="width:85px;padding-left:2px;"><label for="txtDataInicio" class="label">Data</label></td>
      <td style="width: 55px;padding-left:3px;padding-top:1px">
        <asp:TextBox runat="server" ID="txtData" MaxLength="10" CssClass="data-field text-field" />
      </td>
      <td style="width: 30px;padding-top:1px">
        <asp:Button id="cmdSearch" runat="server" CssClass="search-buttom" />
      </td>
      <td>
        * (dd/mm/aaaa)
        <asp:RequiredFieldValidator ID="rfvData" runat="server" ControlToValidate="txtData" Text="Campo obrigatório"></asp:RequiredFieldValidator>
      </td>
    </tr>
  </table>
  <span class="form-note">* Campo obrigatório</span>
  
  <div class="break">
    <asp:Button ID="cmdVoltar" runat="server" Text="Voltar" CssClass="form-buttom" CausesValidation="false" />
    <asp:Button id="cmdExportarExcel" Visible="false" Runat="server" Text="Exportar" CssClass="form-buttom" />
    <span id="pnlImprimir" runat="server" visible="false">
      <input style="display:inline" id="cmdImprimir" type="button" class="form-buttom" value="Imprimir"/>
    </span>
  </div>
  
  <div id="report" runat="server"  visible="false" style="height:auto;max-height:400px;border:0px solid black;overflow-x:scroll">
    <h2>Planejamento Executado</h2>
  </div>
  
  <msgbox:MessageBox ID="MessageBox" runat="server" />
</asp:Content>
